package entity;

import java.util.Date;

/**
 * 项目名：PAIMSys
 * 包名：entity
 * 类名：purchase
 * 描述：采购单实体
 * 作者：柳胜酉
 * 开始时间：2023/4/25
 * 完成时间：
 * 版本：1.0
 */
public class Purchase {
    private int purchase_id;//进货编号
    private int product_id;//商品编号
    private String product_name; //商品名

    private int supplier_id; //供货商编号
    private String supplier_name; //供货商名
    private int purchaser_id; //采购员编号
    private double purchase_price; //进价
    private double quantity; //数量
    private Date purchase_time; //采购时间

    public int getPurchase_id() {
        return purchase_id;
    }

    public void setPurchase_id(int purchase_id) {
        this.purchase_id = purchase_id;
    }

    public int getProduct_id() {
        return product_id;
    }

    public void setProduct_id(int product_id) {
        this.product_id = product_id;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public int getSupplier_id() {
        return supplier_id;
    }

    public void setSupplier_id(int supplier_id) {
        this.supplier_id = supplier_id;
    }

    public String getSupplier_name() {
        return supplier_name;
    }

    public void setSupplier_name(String supplier_name) {
        this.supplier_name = supplier_name;
    }

    public int getPurchaser_id() {
        return purchaser_id;
    }

    public void setPurchaser_id(int purchaser_id) {
        this.purchaser_id = purchaser_id;
    }

    public double getPurchase_price() {
        return purchase_price;
    }

    public void setPurchase_price(double purchase_price) {
        this.purchase_price = purchase_price;
    }

    public double getQuantity() {
        return quantity;
    }

    public void setQuantity(double quantity) {
        this.quantity = quantity;
    }

    public Date getPurchase_time() {
        return purchase_time;
    }

    public void setPurchase_time(Date purchase_time) {
        this.purchase_time = purchase_time;
    }

    @Override
    public String toString() {
        return "purchase{" +
                "purchase_id=" + purchase_id +
                ", product_id=" + product_id +
                ", product_name='" + product_name + '\'' +
                ", supplier_id=" + supplier_id +
                ", supplier_name='" + supplier_name + '\'' +
                ", purchaser_id=" + purchaser_id +
                ", purchase_price=" + purchase_price +
                ", quantity=" + quantity +
                ", purchase_time=" + purchase_time +
                '}';
    }
}
